#include "voltage.h"
float voltage_get()
{
	HAL_ADC_Start(&hadc1);
	float voltage = 0.00;
	if(HAL_IS_BIT_SET(HAL_ADC_GetState(&hadc1),HAL_ADC_STATE_REG_EOC))
	{
		voltage = HAL_ADC_GetValue(&hadc1);
	}
	return(voltage);
}